home *** CD-ROM | disk | FTP | other *** search
INI File | 2006-09-13 | 859 b | 44 lines |
- [SUBJECT]
- Description=Check if the form entry is blank
- ImageIndex=-1
- Folder=Tools
-
-
- [HEAD_TEXT]
- ;<script language="JavaScript">
- ;<!-- Begin
- ;function noEntry() {
- ;mt=document.form.entry.value;
- ;if ((mt.length<1)||(mt.substring(0,6)=="******")) {
- ;alert("`Message`");
- ;document.form.entry.value="******Please Complete This Entry";
- ;document.form.entry.focus();
- ;return false;
- ;}
- ;else { return true; }
- ;}
- ;// End -->
- ;</script>
- ;
-
-
- [BODY_TEXT]
- ;<form name="form" action="`URL`" onsubmit="return noEntry()">
- ;<div align="center">
- ;<input type="text" name="entry" size="40"><br>
- ;<input type="submit" name="button" value="submit">
- ;</div>
- ;</form>
- ;
-
-
- [`Message`]
- Kind=S
- Value=I'm sorry. This entry must be completed before I can submit this form for processing.
-
- [`URL`]
- Kind=U
- Value=/cgi-bin/your-form-processor.pl
-
-
-